﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using The_Chronicles_of_Asku.Areas.Tomb_Floors._10_20._10_15.Resources;
using The_Chronicles_of_Asku.Characters;
using The_Chronicles_of_Asku.Characters.Mobs;
using The_Chronicles_of_Asku.Characters.Mobs.Bosses;
using The_Chronicles_of_Asku.Characters.Mobs.Bosses.Floor_15_20_Leveling;

namespace The_Chronicles_of_Asku.Areas.Tomb_Floors._10_20._10_15
{
    class FloorFifteen
    {
        Hero myHero = new Hero();
        Asazi asazi = new Asazi();
        AsaziBattle battle = new AsaziBattle();

        public void theFloor(Hero myHero, Mob mob)
        {
            Console.WriteLine(FloorFifteenText.Entrance);
            ClearScreen();

            battle.Fight(myHero, asazi);
            myHero.ResetStats(myHero);
            asazi.ResetStats(asazi);
            ClearScreen();

            if (myHero.isAlive == true)
            {
                Console.WriteLine(FloorFifteenText.Finished);
                ClearScreen();
            }

            else if (myHero.isAlive == false)
            {
                Console.WriteLine(FloorFifteenText.Dead);
                myHero.isAlive = true;
                ClearScreen();
            }
        }

        private void ClearScreen()
        {
            Console.ReadKey();
            Console.Clear();
        }
    }
}
